<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% String msg= (String)request.getAttribute("msg"); %>
<% String contextPath = request.getContextPath(); %>
<%
	msg = "";
    String req =request.getParameter("req");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="<%= contextPath %>/css/order.css" rel="stylesheet" type="text/css">
	<!--link rel="stylesheet" type="text/css" href="/itenVII/share/blue.css" /-->
<link rel="stylesheet" type="text/css" href="http://www.kawa.net/service/com/ajaxcom.css">
<link rel="stylesheet" type="text/css" href="http://www.kawa.net/service/tb/ajaxtb.css" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.kawa.net/index.rdf">
<script src="http://www.kawa.net/service/tb/ajaxtb.js"></script>
<script src="http://www.kawa.net/rss/sbm-users.js"></script>
<script src="http://www.kawa.net/service/com/ajaxcom.js"></script>
<script src="http://www.kawa.net/service/com/ajaxcom-lang-ja.js" charset="UTF-8"></script>
<script type="text/javascript" src="/itenVII/share/jkl-calendar.js" charset="UTF-8"></script>
<script type="text/javascript" src="/itenVII/share/jkl-opacity.js" charset="UTF-8"></script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
	
	<title>実績管理画面</title>
	
</head>
	<body>
		<%=msg %>
		<div id="jisseki">
			
				<%if(req.equals("order")){ %>
			<form id="formid" action="<%=request.getContextPath() %>/orderOpe/OrderListServlet">
				<table border="0">
					<tr>
						<td>顧客コード 　　　　<input type="text" name="code"></td>
					</tr>
					</table>
					<script>
					    var cal2 = new JKL.Calendar("caldiv2","formid","start_date");
					    cal2.setStyle( "frame_color", "#3333CC" );
					    var cal3 = new JKL.Calendar("caldiv3","formid","last_date");
					    cal3.setStyle( "frame_color", "#CC3333" );
					</script>
					<table><tr>
					    <td>日付範囲を選択</td>
					    <td><input type="text" name="start_date" onClick="cal3.hide(); cal2.write();" 
					        onChange="cal2.getFormValue(); cal2.hide();"><br><div id="caldiv2"></div></td>
					    <td>～</td>
					    <td><input type="text" name="last_date" onClick="cal2.hide(); cal3.write();" 
					        onChange="cal3.getFormValue(); cal3.hide();"><br><div id="caldiv3"></div></td>
					</tr></table>
				<P><INPUT type="submit" value="表示" id="log"></P>
			</form>
			<%} %>
			
			
			
				<%if(req.equals("sale")){ %>
			<form id="formid" action="<%=request.getContextPath() %>/orderOpe/SaleListServlet">
				<table border="0">
					<tr>
						<td>顧客コード 　　　　<input type="text" name="code"></td>
					</tr>
				</table>
					<script>
					    var cal2 = new JKL.Calendar("caldiv2","formid","start_date");
					    cal2.setStyle( "frame_color", "#3333CC" );
					    var cal3 = new JKL.Calendar("caldiv3","formid","last_date");
					    cal3.setStyle( "frame_color", "#CC3333" );
					</script>
					<table><tr>
					    <td>日付範囲を選択</td>
					    <td><input type="text" name="start_date" onClick="cal3.hide(); cal2.write();" 
					        onChange="cal2.getFormValue(); cal2.hide();"><br><div id="caldiv2"></div></td>
					    <td>～</td>
					    <td><input type="text" name="last_date" onClick="cal2.hide(); cal3.write();" 
					        onChange="cal3.getFormValue(); cal3.hide();"><br><div id="caldiv3"></div></td>
					</tr></table>
					<P><INPUT type="submit" value="表示" id="log"></P>
					
			</form>
			<%} %>
				<a href="<%=contextPath %>/operator/menu.jsp">メニューに戻る</a><br>
		</div>
	</body>
</html>